﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

using RAFOJ.Structs;
using RAFOJ.Submitters;

namespace RAFOJ
{
    class Program
    {
        static void Main(string[] args)
        {
            SPOJSubmitter spoj = new SPOJSubmitter();

            string[] source = new string[10];
            StreamReader sr = new StreamReader("source.cpp");
            source[0] = sr.ReadToEnd();
            source[1] = source[0];
            sr = new StreamReader("source1.cpp");
            source[2] = sr.ReadToEnd();

            string[] realId = new string[10];
            realId[0] = "PRIME1";
            realId[1] = "TEST";
            realId[2] = "TEST";
            
            for (int i = 2; i < 3; i++)
            {
                Submission submission = new Submission();
                submission.setLanguage("C++");
                submission.setSource(source[i]);
                submission.setRealProblemId(realId[i]);

                spoj.submit(submission);
            }

         /*   sr = new StreamReader("source2.cpp");
            source[3] = sr.ReadToEnd();

            Submission s = new Submission();
            s.setLanguage("C++");
            s.setSource(source[3]);
            s.setRealProblemId("1000");
            TimusSubmitter timus = new TimusSubmitter();
            timus.submit(s);*/
            int a = Console.Read();
        }
    }
}
